package route

import (
	"github.com/gin-gonic/gin"
	"myproject/controller"
)

func PathRoute(r *gin.Engine) *gin.Engine {

	newsPath := r.Group("/news")
	{
		controller.NewsRegister(newsPath)
	}
	userPath := r.Group("/user")
	{
		controller.UserRegister(userPath)
	}

	return r
}
